package com.whoimi.admin.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author whoimi
 * @since 2025-08-01T16:36:50.632361
 */

@Table (name ="sys_dept",schema = "wiic_admin")
public class Dept implements Serializable {

    @Serial
	private static final long serialVersionUID = 2428652458671748166L;

	/**
	 * 主键
	 */
	@Id
   	@Column("id")
	private Long id;

	/**
	 * 部门名称
	 */
   	@Column("name")
	private String name;

	/**
	 * 部门编号
	 */
   	@Column("code")
	private String code;

	/**
	 * 父节点id
	 */
   	@Column("parent_id")
	private Long parentId;

	/**
	 * 父节点id路径
	 */
   	@Column("tree_path")
	private String treePath;

	/**
	 * 显示顺序
	 */
   	@Column("sort")
	private Integer sort;

	/**
	 * 状态(1-正常 0-禁用)
	 */
   	@Column("status")
	private Boolean status;

	/**
	 * 创建人
	 */
   	@Column("create_by")
	private String createBy;

	/**
	 * 创建时间
	 */
   	@Column("create_time")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
   	@Column("update_by")
	private String updateBy;

	/**
	 * 更新时间
	 */
   	@Column("update_time")
	private LocalDateTime updateTime;

	/**
	 * 逻辑删除标识(1-已删除 0-未删除)
	 */
   	@Column("is_deleted")
	private Boolean isDeleted;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getTreePath() {
		return this.treePath;
	}

	public void setTreePath(String treePath) {
		this.treePath = treePath;
	}

	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public LocalDateTime getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public String getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public LocalDateTime getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getIsDeleted() {
		return this.isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

}
